package com.ruoyi.signup.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.signup.mapper.ActivitySignupMapper;
import com.ruoyi.signup.domain.ActivitySignup;
import com.ruoyi.signup.service.IActivitySignupService;

/**
 * 活动报名Service业务层处理
 * 
 * @author anyunyi
 * @date 2025-05-29
 */
@Service
public class ActivitySignupServiceImpl implements IActivitySignupService 
{
    @Autowired
    private ActivitySignupMapper activitySignupMapper;

    /**
     * 查询活动报名
     * 
     * @param id 活动报名主键
     * @return 活动报名
     */
    @Override
    public ActivitySignup selectActivitySignupById(Long id)
    {
        return activitySignupMapper.selectActivitySignupById(id);
    }

    /**
     * 查询活动报名列表
     * 
     * @param activitySignup 活动报名
     * @return 活动报名
     */
    @Override
    public List<ActivitySignup> selectActivitySignupList(ActivitySignup activitySignup)
    {
        return activitySignupMapper.selectActivitySignupList(activitySignup);
    }

    /**
     * 新增活动报名
     * 
     * @param activitySignup 活动报名
     * @return 结果
     */
    @Override
    public int insertActivitySignup(ActivitySignup activitySignup)
    {
        return activitySignupMapper.insertActivitySignup(activitySignup);
    }

    /**
     * 修改活动报名
     * 
     * @param activitySignup 活动报名
     * @return 结果
     */
    @Override
    public int updateActivitySignup(ActivitySignup activitySignup)
    {
        return activitySignupMapper.updateActivitySignup(activitySignup);
    }

    /**
     * 批量删除活动报名
     * 
     * @param ids 需要删除的活动报名主键
     * @return 结果
     */
    @Override
    public int deleteActivitySignupByIds(Long[] ids)
    {
        return activitySignupMapper.deleteActivitySignupByIds(ids);
    }

    /**
     * 删除活动报名信息
     * 
     * @param id 活动报名主键
     * @return 结果
     */
    @Override
    public int deleteActivitySignupById(Long id)
    {
        return activitySignupMapper.deleteActivitySignupById(id);
    }
}
